<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:composition template="/templates/default.xhtml">
            <ui:define name="content">
                <h:form>
                        <h:panelGrid id="panelNewDep" columns="2" >
                            <f:facet name="header">
                                <h:outputText value="#{locale.formCourseInfo}"/>
                             </f:facet>
                            <h:outputLabel value="#{locale.formCode}:" />
                            <h:inputText value="#{newCourse.newCourse.courseCode}" size="20"  />

                            <h:outputLabel value="#{locale.formName}:" />
                            <h:inputText value="#{newCourse.newCourse.courseName}" size="20"  />

                            <h:outputLabel value="#{locale.formLevel}:" />
                            <h:inputText value="#{newCourse.newCourse.courseLevel}" size="20"  />

                            <h:outputLabel value="#{locale.formCredits}:" />
                            <h:inputText value="#{newCourse.newCourse.courseCredit}" size="20"  />

                            <h:outputLabel value="#{locale.formCredOverlapReduction}:" />
                            <h:inputText value="#{newCourse.newCourse.credOverlapReduction}" size="20"  />

                            <h:outputLabel value="#{locale.formSemester}:" />
                            <h:inputText value="#{newCourse.newCourse.semester}" size="20"  />

                            <h:outputLabel value="#{locale.formTeachingLanguage}:" />
                            <h:inputText value="#{newCourse.newCourse.teachingLanguage}" size="20"  />

                            <h:outputLabel value="#{locale.formPrerequisite}:" />
                            <h:inputText value="#{newCourse.newCourse.prerequisites}" size="20"  />

                            <h:outputLabel value="#{locale.formContent}:" />
                            <h:inputText value="#{newCourse.newCourse.courseContent}" size="20"  />

                            <h:outputLabel value="#{locale.formPedMethods}:" />
                            <h:inputText value="#{newCourse.newCourse.pedMethods}" size="20"  />

                            <h:outputLabel value="#{locale.formAssessment}:" />
                            <h:inputText value="#{newCourse.newCourse.assessment}" size="20"  />

                            <h:outputLabel value="#{locale.formGradingScale}:" />
                            <h:inputText value="#{newCourse.newCourse.gradingScale}" size="20"  />

                            <h:outputLabel value="#{locale.formUseOfExaminers}:" />
                            <h:inputText value="#{newCourse.newCourse.useOfExaminers}" size="20"  />

                            <h:outputLabel value="#{locale.formReqResitExam}:" />
                            <h:inputText value="#{newCourse.newCourse.reqResitExam}" size="20"/>

                            <h:outputLabel value="#{locale.formExamAids}:" />
                            <h:inputText value="#{newCourse.newCourse.examAids}" size="20"  />

                            <h:outputLabel value="#{locale.formMandetoryWorkReq}:" />
                            <h:inputText value="#{newCourse.newCourse.mandetoryWorkReq}" size="20"  />

                            <h:outputLabel value="#{locale.formReadingList}:" />
                            <h:inputText value="#{newCourse.newCourse.readingList}" size="20"  />

                            <h:outputLabel value="#{locale.formReplacesCourse}:" />
                            <h:inputText value="#{newCourse.newCourse.replacesCourse}" size="20"  />

                            <h:outputLabel value="#{locale.formAdditionalNotes}:" />
                            <h:inputText value="#{newCourse.newCourse.additionalNotes}" size="20"  />

                            <h:outputLabel value="#{locale.formStudyProgram}:" />
                            <h:selectOneMenu value="#{newCourse.newCourse.studyprogram.studyProgramID}">
                                <f:selectItem itemLabel="#{locale.selectStudyprogram}" itemValue=""/>
                                <f:selectItems value="#{newCourse.studprogs}" var="sp" itemLabel="#{sp.name}" itemValue="#{sp.studyProgramID}"/>
                            </h:selectOneMenu>
                        </h:panelGrid>
                    <h:commandButton value="#{locale.buttonAdd}" action="#{newCourse.executeNewCourse}" />
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

